package com.mingqijia.gassafety.db.entity.redis;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 实时状态信息
 * @author guoliang.lao
 */
@Data
public class AlertLog {
    @ApiModelProperty("设备号")
    private String imei = "";

    @ApiModelProperty("设备状态 0:离线 1:正常 2:低报 3:高报 4:故障 5:过期")
    private Integer equipmentStatus;

    @ApiModelProperty("设备状态信息")
    private String equipmentStatusInfo;

    @ApiModelProperty("时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date time;

    @ApiModelProperty("客户id")
    private Integer consumerId;

    @ApiModelProperty("户名")
    private String custName = "";

    @ApiModelProperty("户号")
    private String subsCode = "";
}
